#include <Windows.h>
#include "CTradeItemAcceptedPacket.h"

CTradeItemAcceptedPacket::CTradeItemAcceptedPacket(unsigned short itemID, unsigned long quantity, unsigned char tradeSlotID, unsigned char invSlotID) {

	this->type = 0x25;
	this->size = 0x06;
	memset(this->data, 0, sizeof(data));

	memcpy(this->data+0x04-0x04, &(quantity), 4);
	memcpy(this->data+0x08-0x04, &(itemID), 2);
	memcpy(this->data+0x0A-0x04, &(tradeSlotID), 1);
	memcpy(this->data+0x0B-0x04, &(invSlotID), 1);

}

CTradeItemAcceptedPacket::~CTradeItemAcceptedPacket() {

}